package com.example.tests;

import com.example.framework.Contact;
import org.testng.Assert;
import org.testng.annotations.Test;

public class ContactCreationTests extends TestManager{

    @Test
    public void shouldCreateContactWithValidData() throws InterruptedException {
        Contact contact = new Contact().setFirstName("Firstname").setLastName("Lastname");
        manager.getContactHelper().createContact(contact);

        //try search this contact and if contact is found then test is passed, else test is failed
        Assert.assertTrue(manager.getContactHelper().isContactFound(contact));
    }

}
